Handle token expiration in react js